﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FormProj
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public void Logon()
        {
            FormsAuthentication.SignOut();
        }

        public void NormalLogin()
        {
            string loginName = Request.Form["loginName"];
            if(string.IsNullOrEmpty(loginName))
            {
                return;
            }

            FormsAuthentication.SetAuthCookie(loginName,true);
        }
    }
}